package au.org.nh.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "settings", uniqueConstraints = { @UniqueConstraint(columnNames = { "eppd_friendly_name" }) })
public class Settings {

	private Long id;
	@Expose
	private String friendlyName;

	public Settings() {
	}

	@Id
	@GeneratedValue
	@Column(name = "settings_id")
	public Long getId() {
		return id;
	}

	@Column(name = "eppd_friendly_name", nullable = false)
	public String getFriendlyName() {
		return friendlyName;
	}

	public void setFriendlyName(final String friendlyName) {
		this.friendlyName = friendlyName;
	}

	public void setId(final Long id) {
		this.id = id;
	}

	/*
	 * public void setEppExtensions(final List<EPPExtension> eppExtensions) {
	 * this.eppExtensions = eppExtensions; }
	 */

	/*
	 * @OneToMany(cascade = CascadeType.ALL)
	 * 
	 * @JoinTable(name = "epp_settings_extensions", joinColumns = {
	 * 
	 * @JoinColumn(name = "settings_id") }, inverseJoinColumns = {
	 * 
	 * @JoinColumn(name = "extension_id") }) public List<EPPExtension>
	 * getEppExtensions() { return eppExtensions; }
	 */

}
